#!/bin/bash
set -e
set -x
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/opt/jdk/bin:/opt/maven/bin:/root/bin:/root/bin:/opt/jdk/bin:/opt/maven/bin:/opt/node/bin

npm install -g cnpm --registry=https://registry.npm.taobao.org && \
cnpm i && \
npm run build